<?php
/**
 * Power By Tmac PHP MVC framework
 * $Author: zwt007 $  <zwttmac@qq.com>
 * $Id: Tmac.config.php 45 2011-07-16 10:50:25Z zwt007 $
 * http://un.zhuna.cn； 
 */
!defined('TMAC_BASE_PATH') && exit('Access Denied!');
require(TMAC_BASE_PATH . 'database.config.php');
$TmacConfig = array();

//Tmac 一般设置
$TmacConfig['Common']['urlrewrite'] = false;            //是否开启urlrewrite(隐藏index.php)
$TmacConfig['Common']['urlseparator'] = '.';            //Controller与Action的分隔符  以上几项修改后 需要删除Cache\template下的模板缓存
$TmacConfig['Common']['charset'] = 'UTF-8';             //文档编码(UTF-8|GB2312)
$TmacConfig['Common']['timezone'] = 'Asia/Chongqing';   //时区
$TmacConfig['Common']['autofilter'] = true;             //是否进行自动对POST.GET.COOKIE进行过滤
$TmacConfig['Common']['gzip'] = true;                   //是否启用gzip页面压缩
$TmacConfig['Common']['debug'] = false;					//是否开启DEBUG模式 上线后关闭
$TmacConfig['Common']['errorreport'] = true;           //是否开启页面报错 上线后关闭
$TmacConfig['Common']['url_case_insensitive'] = false;  //URL地址是否不区分大小写
$TmacConfig['Common']['cookiepre'] = 'tmac_';           //cookie前缀
$TmacConfig['Common']['cookiecrypt'] = true;            //cookie是否加密 建议您调试程序的时候关闭 发布程序的时候开启

//Tmac 缓存设置
$TmacConfig['Cache']['class'] = 'File';                 //Tmac缓存方式 可以为File Apc EAccelerator Memcached XCache

//Memcached 设置
$TmacConfig['Cache']['Memcached']['host'] = 'localhost';    //Memcached 主机
$TmacConfig['Cache']['Memcached']['port'] = 11211;          //Memcached 端口
$TmacConfig['Cache']['Memcached']['persistent'] = true;     //Memcached 长连接
$TmacConfig['Cache']['Memcached']['weight'] = 1;            //Memcached 权重
$TmacConfig['Cache']['Memcached']['timeout'] = 1;           //Memcached 连接时间
$TmacConfig['Cache']['Memcached']['compression'] = true;    //Memcached 压缩

require(APPLICATION_ROOT . 'Config' . DIRECTORY_SEPARATOR . 'config.php');
?>